package com.ruoyi.common.utils;


import reactor.util.function.Tuple2;
import reactor.util.function.Tuples;

/**
 * @ClassName BizConsumerUtil
 * @Description
 * @Author sizegang
 * @Date2025/4/29 23:18
 **/
public class BizConsumerUtil {

    public static final String CONSUMER_CACHE_SPLIT = "_";

    public static String buildConsumerCache(String phoneNumber, String consumerNo) {
        return phoneNumber + CONSUMER_CACHE_SPLIT + consumerNo;
    }


    public static Tuple2<String, String> getConsumerCache(String value) {
        String[] split = value.split(CONSUMER_CACHE_SPLIT);
        return Tuples.of(split[0], split[1]);
    }

}
